Update gender.py

Array sequence was incorrect, causing api to skip over first element of array. Moved cnt nested in else statement above url.