When you say "the grammar book", to which are you referring? Some grammar books give bad advice, and some are not totally clear.
In any case, yes 'time' is a noun, but 'much' isn't.
To your other example:
'So' is used before 'many'. What does your grammar say about 'such' before a determiner, such as 'a'?