Count the number of occurences of some element.
Usage
count(x, elem)
# S3 method for class 'Container'
count(x, elem)
# S3 method for class 'Set'
count(x, elem)
Examples
co = container("a", "b", "a", mean, mean)
count(co, "a")
#> [1] 2
count(co, mean)
#> [1] 2
count(co, "c")
#> [1] 0