Replaces filter and size (or length) with count.

Before:

seq.filter(p).size

After:
seq.count(p)