def count_with_file(filename)
      return if ::ServiceMock.disable_stubs
      yield self if block_given?
      content = File.open(filename, 'rb') { |file| file.read }
      count(content)
    end
def count_with_file(filename)
      return if ::ServiceMock.disable_stubs
      yield self if block_given?
      content = File.open(filename, 'rb') { |file| file.read }
      count(content)
    end
Get the count for the request criteria in the provided filename.