You should be able to know by the context.

У меня много книг.
I have many (of) books.

Using the genitive after много, I always imagine that I am substituting the zero endings for fem. and the...