Keep a counter variable that will hold the number of correct answers.
Integer scoreCount = 0; //initial score
if (answer == 16) {
scoreCount += 1; //increase score count
System.out.println("Correct! You now have " + scoreCount + " points"); //show latest score
}