count

fun count(element: T): Int

Returns the count of element, or 0 if it is absent.