Create countDuplicates.java