In Alameda County , 15 percent of the 87 inmates released early had been sentenced for those crimes and others , including carrying concealed or loaded guns , attempting to take a gun from a police officer and displaying a gun in a threatening manner .