Counts number of mistakes