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. To use this function, you need to provide the path to the fixture file and the folder where the fixtures are stored. The function should return the number of objects saved to the database. If the fixture file is empty, the function should return 0.
  
  assert load_properties_and_save_to_db('properties.json', 'models/fixtures') == 3
  assert load_properties_and_save_to_db('empty.json', 'models/fixtures') == 0
  assert load_properties_and_save_to_db('properties_with_ids.json', 'models/fixtures') == 2
  assert load_properties_and_save_to_db('nonexistent.json', 'models/fixtures') == 0
output: def load_properties_and_save_to_db(fixture_file, fixtures_folder):
      import os
      import json
      from models.property import Property
  
      fixture_path = os.path.join(fixtures_folder, fixture_file)
      
      if not os.path.exists(fixture_path):
          return 0
      
      with open(fixture_path, 'r') as file:
          data = json.load(file)
      
      if not data:
          return 0
      
      properties = data.get('properties', [])
      count = 0
      
      for prop in properties:
          property_obj = Property(**prop)
          property_obj.save()
          count += 1
      
      return count