Sort of working seachcount.java