Counting by multiples in c byte array