@tanguatlay,
In strictly correct English, (a) is the better choice because the sentence is a positive statement in which
many is modifying a plural countable noun. According to this convention,
much is used in positive statements with uncountable nouns:
There were many laughs.
There was much laughter.
These somewhat confusing conventions are outlined on
this handy website.
That said, in less formal English (b) would probably strike a native speaker as fine.
Also, I would say that
for is not strictly necessary but preferable. Grammatically,
He studied three hours makes it sound as if the three hours were the object of his study rather than the duration during which he was studying. In practice, though, few native speakers would interpret it that way.