Technically, "Holland" has no population—because Holland is not a country. It's a region comprising two provinces within the Netherlands.
Historically, Holland was the economic and political heart of the Dutch Republic (1581-1795) and later the Kingdom. International usage made "Holland" a synecdoche for the entire country—similar to "England" for "UK" or "Russia" for "USSR."
The Dutch government officially rebranded as "Netherlands" in 2020 (logo, tourism, diplomacy) to promote accurate terminology, though "Holland" remains widely used colloquially.
When someone asks "population of Holland," they almost always mean Netherlands: ~17.8 million. But precisely speaking, only the two Holland provinces total ~6.7 million.