Incremental Counter

  x == 0;

Pointless. Why are you comparing the two values when you do nothing either way?