Sorry, there is no such functionality for now, counting involves recursion with privacy checking for each item, which is very resource intensive and slow.