input: Write a function to load a JSON fixture file, extract properties from it, create Property objects from the properties, save them to the database, and print the number of saved objects to the console. To use this function, create a JSON fixture file with a "properties" key containing a list of property objects and provide the appropriate command line arguments to specify the fixture file and folder. If successful, the function should return the number of saved objects.
  assert main('/path/to/base') == 3
  assert main('/another/path/to/base') == 5
  assert main('/no/properties/file') == 0
output: def main(base_path):
      import json
      import os
      from myapp.models import Property
  
      fixture_path = os.path.join(base_path, 'properties.json')
      if not os.path.exists(fixture_path):
          return 0
  
      with open(fixture_path, 'r') as file:
          data = json.load(file)
  
      if 'properties' not in data:
          return 0
  
      properties = data['properties']
      saved_count = 0
  
      for prop in properties:
          property_obj = Property(**prop)
          property_obj.save()
          saved_count += 1
  
      print(saved_count)
      return saved_count