Count String or List length. Return an Integer. Can also count occurence in a String.
count($data , occurence = None ) : Integer
$data.count( occurence = None ) : Integer
$data String | List

Works with String or List.

occurence String

Only works with String. Define the occurence to count in a String.


How to count length of a List or String

How to count occurence in a String