Check file count from shell pattern

Raises an alert if the number of files matching the shell pattern
exceeds the supplied thresholds.