Renamed count() to size()
Added count(elem)