counting dropped encoder readings