fixed distance counting