Added resource counts and pagination to Search