Heart rate confusion...

YU_VI

Can someone please tell me at which scan appointment does your baby heart rate two you whether it's a boy or girl?

The first or the one after 12 weeks?

My baby heart rate was 176bpm at our 9 week scan. Do I count that one into gender Guesses or wait for 20 weeks?