Added a gap counter