correct count for recursivesearch (refs #4195)