return counter of empty elements in the iterable does not count the null values
int countEmpty({bool trim = true}) => count( (e) => trim ? e.trim().isEmpty : e.isEmpty, );