Search and sort counter