Add some hit counter logic