Roughly a million, as the original answer said — and that is a reasonable ballpark rather than a precise figure.
Nobody actually knows, because "game" covers an enormous range. The count depends entirely on where you draw the line:
Databases like MobyGames and IGDB try to track releases systematically, and even they acknowledge large gaps for early arcade and home-computer titles that were never catalogued. So: about a million is a fair answer, with the honest caveat that the real number is unknowable and growing daily.