Update CountAppearances.java