refactor available_count
make appropriate changes to equipment_model_spec