Hello.
One of our DC's Hostname is set with a capital Character ex. Berlin.
In the _msdcs Zone the system generates two Records one with all lowercase an one with the uppercase Name.
So your Test with No. of DC's -eq No. of SRV Records fails.
Solution could be to normalize the Hostname to lowercase and count distinct records or change to
No. of DC -le No. Srv Records.
Thanks for your tools 👍