Add functionality to count frequency of searches