Changed size 0 to search type count