pub async fn count_deployments(pool: &Pool<MySql>) -> Result<i64>
Counts the total number of deployments in the database.