Fixing search results counter

The search result count is 'wrong' when we filter out results from the root node of a regulation tree. We sort of fix that here by making adjustments to the result count.