Enum.count/2

defmodule Enum do
  def count(enumerable, fun)
end

Returns the count of elements in enumerable for which fun returns a truthy value.