Replaces filter and size (or length) with count.
Before:

seq.filter(myValueIsGoodEnough).size

After:

seq.count(myValueIsGoodEnough)