}
}
public int count(final FloatPredicate predicate)
{
final Counter result = new Counter();
this.forEachWithOccurrences(new FloatIntProcedure()
{
public void value(float each, int occurrences)
{
if (predicate.accept(each))
{
result.add(occurrences);
}
}
});
return result.getCount();
}