Added feature to count number of correct/incorrect attempts.