The Fed oversees about 5,000 bank holding companies , about 850 smaller banks that are both state-chartered and belong to the Federal Reserve system and some foreign banks operating in the United States .