Help me in solving MISSP problem

My issue

My code

/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
	    Scanner sc = new Scanner(System.in);
		// your code goes here
		int n=sc.nextInt();
		for(int j=0;j<n;j++)
		{
		int dolls=sc.nextInt();
		int count=0;
		int dollType=0;
		for(int i=0;i<dolls;i++)
		{
		    dollType=sc.nextInt();
		    if(dollType%2!=0)
		    {
		        count++;
		    }
		}
		System.out.print(count);
		}
	}
}

Problem Link: MISSP Problem - CodeChef

@jebhaglory
U have to check for freq of each number , if it is even then its in pair else its not .
like 1 1 2 2 3
the count of 1 is 2
the count of 2 is 2
but the count of 3 is 1 which is odd
so u have to return 3.