Enum.frequencies

You're seeing just the function frequencies, go back to Enum module for more information.
Link to this function

frequencies(enumerable)

View Source (since 1.10.0)

Specs

frequencies(t()) :: map()

Returns a map with keys as unique elements of enumerable and values as the count of every element.

Examples

iex> Enum.frequencies(~w{ant buffalo ant ant buffalo dingo})
%{"ant" => 3, "buffalo" => 2, "dingo" => 1}