Plenty of commuters, shoppers/diners, and criminals from outside SF, so number of police officers per city resident is not a very good metric.