Return count of the given item
int count(bool Function(T e) func) { return this.where((element) => func(element)).length; }