There are limits to how high you can count. 

When you reach that limit, the encoder will roll over to either 0 or the maximum negative number.