Counts the number of items in a list, object, array, or string input.
This is NOT a mathematical sum - it simply counts how many items are in the input you feed it.
Pass an array and it counts the elements.
Specify a separator (comma by default) to split and count items. If no separator is specified for strings, it auto-detects commas or spaces.
Counts the number of keys.
["a", "b", "c"]"apple,banana,orange"separator: ",""apple banana orange"separator: " "{name: "John", age: 30}"hello"""Note:
inputArrayStringObjectThe list, array, or string to count[]separatorStringDelimiter for splitting strings (optional)","