LUN-1122: fixed search count
* minimised no of queries for folder children files/folders count