Counts how many items match the criteria in the callback function.
The array.
The filtering function.
The number of items that match the filter.
Counts how many items match the criteria in the callback function.