(partial) fix for search count