Think about how you would do it manually with a sheet of paper and a pencil.
Try to device a process that give you the answer, the procedure should be the base of your program.
This code look like a reuse of a code detecting duplicate and you just changed the labels.
You should learn to use the debugger as soon as possible. Rather than guessing what your code is doing, It is time to see your code executing and ensuring that it does what you expect.
The debugger allow you to follow the execution line by line, inspect variables and you will see that there is a point where it stop doing what you expect.
Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[
^]
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html[
^]
https://www.jetbrains.com/idea/help/debugging-your-first-java-application.html[
^]
You need to change the logic of
dThrees
, you understand that finding duplicates is not the same logic as counting 3's.