Good answer...and welcome to the site !If you think how God created all this universe, you can think how God can count every prayer in the same time, you need to think about the capacity anf the power of God, to answer how he does that, that is beyond our limited capacity of thinking.