Collecting all Pokemon game badges totals 78, with unique Gyms in different versions boosting the count. Unofficial Gym badges from the anime, like Barry and Trip's, bump the total badge count up ...
and to prove your worth as a Pokemon master; you need to get all the gym badges. So, to become the new Pokemon master of Paldea in Pokemon SV, you need to complete the Victory Road Storyline.