Nobody has an exact figure, but the scale is easy to reason about. There are thousands of studios worldwide, and even a modest one ships a couple of smaller titles and roughly one major release a year.
Multiply that across several decades of game development — effectively since home computers became common — and you land on an enormous number. Add in the flood of independent and mobile releases of the last fifteen years and the total runs well into the hundreds of thousands, if not more.
The honest answer is that the catalogue is far too large for anyone to count precisely, and it grows every single day.