Allah likewise knows from eternity how many people will enter Hell. The numbers of those entering Paradise and Hell are both within His perfect knowledge.
Nothing becomes newly discovered to Allah. Human understanding may be corrected or enlarged; divine knowledge is free from such limitation.