It means that only God knows how many men like that there are. Meaning there are a lot of them. It's kind of strange to see it in the past tense. Normally the expression is like "God only knows how many."
- For Teachers