Converts a list to a counting number.
Example: 1, 2, 3 -> 3
1, 2, 3
static int toCountingNumber(Iterable? iterable) { return iterable != null && iterable.isNotEmpty ? iterable.length : 0; }