Store counters in firebase.