public int getmax(int[] length) {
		int count = 0;
		Arrays.sort(length);

		for (int pointer = 0; pointer < length.length-1; pointer++) {
			if (length[pointer] == length[pointer + 1]) {
				count++;
				pointer++;
			}
		}
		return count;
	}