Count number of errors in calculator