public int countDuplicates()
    {
        int duplicates = 0;

        // TODO: Write the code to get the number of duplicates in the list
        for (int i = 0; i < list.size()-1; i++)
        {
        	for (int j = i+1; j < list.size(); j++)
        	{
        		String current = list.get(i);
        		String compare = list.get(j);
        		if (current.equals(compare))
        		{
        			duplicates++;
        		}
        	}
        }
        return duplicates;
    }