Connected to firebase on startup and set a count variable.