eventcount is not updating but with a fixed value pushing to the firebase works but this only works if you have the count already initialized in the firebase db