db.collection("cities").get().then(function(querySnapshot) {
console.log(querySnapshot.size); });
but the problem is I am using pagination and load 30 records for each call. so I am unable to get the total numbers of records. Is there any way to get it ? like, we are doing in sql.