Google's paper on Percolator from 2010 says there are more than 1T web pages. 9 years later there is surely way more than that.
https://ai.google/research/pubs/pub36726
The real issue would be crawling and indexing all those pages. How long would it take for an average user's computer with a 10Mb internet connection to crawl the entire web? It's not as easy a problem as you make it seem.