Added average counting module