I am using firestore, but I couldn't get to use query counting. query.count() gives error all the time. How did you upgrade to new version of firebase? Can you help please. Much appreciated.