simple function to count search results. use it with wordpress default search.