Fix filter label total

Make the total in the label match the number of machines displayed in the list by counting the number of machines that satisfy the constraints.

Previously it could end up saying (10 of 12 shown) even when there was no text in the filter, because two machines did not match the constraints.