Count collection

Is there an easy way to count the number of documents in a collection
Or even better, is there a metadata to a collection with the number of documents in it.
Using this FQL for now Count(Select("data", Paginate(Documents(Collection("Teacher"))))) but won’t work for large collection as I will need to paginate over the pages.

If you do just Count(Documents(Collection(…))) it should work.

2 Likes