Incremented the counter variables when the corresponding lifecycle callback method gets called