Nowadays, when an amount tabelvorto ("kiom", "tiom", "iom", "ĉiom" or "neniom") is followed by the thing(s) or category to which the amount refers, there's always a "da" between them. (See also Why is "da" used in this question?.)
This goes for countable quantities:
Kiom da gekuzoj vi havas?
... as well as for uncountable ones:
Kiom da akvo vi volas trinki?
As this answer to How to mark accusative for correlatives of quantity? Kiel marki akuzativon ĉe "...iom"-aj tabelvortoj? points out, this though hasn't always been the case:
Actually the tiom/kiom words used to accept the n-ending; Hence you could say "Kiom laboristojn bezonas tiom da laboro?". However it is no longer used and people now use the da-format (kiom da laboristoj).
Is it known when, how and why this changed and "da" became customary and (outside of poetry) seemingly even required?