While the metacritic makes for a cool graphic and gives us a general idea it's far from accurate, it remains acrurate up until a certain point from what I can find around the PS3/360 there must be digital games that aren't being counted.
Over 10,000 games were released for ps4. 171,000 people from 8,000 developers.
https://www.mobygames.com/platform/playstation-4/ 6,000 more than PS2 seemingly accurate figure
Nintendo Switch has near 11,500 games.
https://www.mobygames.com/platform/switch/
2,700 so far on ps5.
https://www.mobygames.com/platform/playstation-5/
While Xbox SXS figures are difficult to find.