Roughly 40% is the figure often quoted, and while it is an estimate rather than a counted statistic, the direction is right: the Second World War is the most heavily mined historical setting in the medium.
It offers a clear moral framework, globally recognised iconography, and an enormous supply of documented equipment and engagements — which makes for efficient design. The period also sits at the origin of the modern first-person shooter, so a large share of the genre's conventions were built there and later titles inherited them.
Nobody has catalogued every release across every platform, and the count shifts depending on whether you include strategy games, flight sims, mobile titles and re-releases. Treat 40% as a reasonable impression rather than a measurement.
What is certain is that the setting's share has declined noticeably as shooters moved toward contemporary and near-future conflicts.