K & R 1.5 Counter thing using arrays.