If your follower count is higher than the current highest number in the National Pokédex, then subtract the highest National Pokédex number from your follower count until you are within range.
Just thought I’d add that there are now 802 Pokémon due to the release of Sun and Moon