title: Counting number of elements in a list that satisfy the given predicate
body: <p>Does Haskell standard library have a function that given a list and a predicate, returns the number of elements satisfying that predicate? Something like with type <code>(a -&gt; Bool) -&gt; [a] -&gt; Int</code>. My hoogle search didn't return anything interesting. Currently I am using <code>length . filter pred</code>, which I don't find to be a particularly elegant solution. My use case seems to be common enough to have a better library solution that that. Is that the case or is my premonition wrong?</p>