Added a custom `count` method since it is marginally faster than relying on the default `Collection` implementation.
Added a custom `count` method since it is marginally faster than relying on the default `Collection` implementation.

mattgallagher/CwlSignal,MomentaBV/CwlUtils,mattgallagher/CwlSignal,MomentaBV/CwlUtils,monyschuk/CwlSignal