testing count query for tree members