Get number of songs for genres in a more efficient way