added theory of storing the searches and counting the different results