@@ -0,0 +1,350 @@
+package org.psjava.ds;%0A%0Aimport org.psjava.util.EqualityFilter;%0Aimport org.psjava.util.FilteredIterable;%0Aimport org.psjava.util.SizeOfIterable;%0A%0Apublic class OccurrenceCounter %7B%0A%0A    public static %3CT%3E int get(Iterable%3CT%3E items, T target) %7B%0A        return SizeOfIterable.getSize(FilteredIterable.create(items, EqualityFilter.create(target)));%0A    %7D%0A%0A%7D%0A

add OccurrenceCounter