You need 28 Holes.
I used those (
https://www.sjscycles.co.uk/rims-tap...black-28-hole/) for my last build.
If you just want to replace your rim, you might want to try getting the exact same model you have now. (Same ERD - effective rim diameter.) Then you could theoretically reuse your spokes and don't have to buy new ones.