Adding a $count variable to the pages search results.