Thanks for pointing this out. It's conventional apparently. The rule is:
If the number is written as a word (not numeral) then there should be a space between the number and counter.
If the number is written as a numeral, the space in between number and counter is optional.