added a counter function inside banger window, enabling automatic timed bangs