Is it possible to count how many items a collection has using the new Firebase database, Cloud Firestore?
If so, how do I do that?
firebaseFirestore.collection("...").addSnapshotListener(new EventListener() { @Override public void onEvent(QuerySnapshot documentSnapshots, FirebaseFirestoreException e) { int Counter = documentSnapshots.size(); } });