pub async fn get_provider_instance_count( pool: &Pool<MySql>, provider_id: i64, ) -> Result<i64>
Counts the total number of instances associated with a provider.