Dynamic Itemset Counting ; java code