add fast way to count the total number of latest search