Law enforcement in the United States is one of three major components of the criminal justice system of the United States, along with courts and corrections. Although each component operates semi-independently, the three collectively form a chain leading from an investigation of suspected criminal activity to the administration of criminal punishment. There are more than 800,000 sworn law enforcement officers now serving in the United States, about 12 percent of whom are women. Around 137,000 of those officers work for federal law enforcement agencies. Law enforcement operates primarily through governmental police agencies. There are 17,985 police agencies in the United States which include municipal police departments, county sheriff's offices, state troopers, and federal law enforcement agencies. The law enforcement purposes of these agencies are the investigation of suspected criminal activity, referral of the results of investigations to state or federal prosecutors, and the temporary detention of suspected criminals pending judicial action. Law enforcement agencies, to varying degrees at different levels of government and in different agencies, are also commonly charged with the responsibilities of deterring criminal activity and preventing the successful commission of crimes in progress. Other duties may include the service and enforcement of warrants, writs, and other orders of the courts. Law enforcement agencies are also involved in providing first response to emergencies and other threats to public safety; the protection of certain public facilities and infrastructure, such as private property; the maintenance of public order; the protection of public officials; and the operation of some detention facilities (usually at the local level). Types of law enforcement agencies Policing in the United States is conducted by "around 18,000 federal, state and local law enforcement agencies, all with their own rules". Every state has its own nomenclature for agencies, and their powers, responsibilities and funding vary from state to state. 2008 census data from the Department of Justice's Bureau of Justice Statistics (BJS) revealed that this constitutes: 73 federal agencies 50 primary state law enforcement agencies 638 other state agencies 1,733 special jurisdiction agencies 3,063 sheriff's offices 12,501 municipal, county, tribal, and regional police departments Federal At the federal level, there exists both federal police, which possess full federal authority as given to them under United States Code (U.S.C.), and federal law enforcement agencies, who are authorized to enforce various laws at the federal level. Both police and law enforcement agencies operate at the highest level and are endowed