Count the number of codes
