input: Write a function to load a JSON fixture file, extract properties from it, create Property objects from the properties, and save them to the database. The function should return the number of objects saved. If no fixture file is provided, a default file 'properties.json' should be used. The saved objects will be printed to the console.
  
  main(base_path)
  
  assert main('path/to/app')==5
  assert main('another/path/to/app')==3
  assert main('yet/another/path/to/app')==0
  assert main('path/to/app')==2
  assert main('path/to/app')==0
output: def main(base_path):
      import os
      import json
      from myapp.models import Property
  
      fixture_file = os.path.join(base_path, 'properties.json')
      if not os.path.exists(fixture_file):
          return 0
  
      with open(fixture_file, 'r') as f:
          data = json.load(f)
  
      properties = data.get('properties', [])
      count = 0
      for prop in properties:
          property_obj = Property(**prop)
          property_obj.save()
          count += 1
          print(property_obj)
  
      return count