A variable dead zone counter as maximum value follower