code: def test_strings(self):
      x = pd.Series(
          [
              "",
              "hi im ethan!",
              "consecutive.    spaces.",
              " spaces-on-ends ",
          ],
      )
      answers = [0, 2, 4, 2]
      self.compare(self.primitive(), x, answers)
  
file_path: featuretools/featuretools/tests/primitive_tests/natural_language_primitives_tests/test_whitespace_count.py
imports: import numpy
  import pandas
  from featuretools.primitives import WhitespaceCount
  from featuretools.tests.primitive_tests.utils import PrimitiveTestBase, find_applicable_primitives, valid_dfs
label_desc: Use image node_id 2 for calling the TestWhitespaceCount obj's underlying member method code with example usage: obj.test_strings() without return types