sentences:  As of December 2014, BaFin regulated approximately 1,780 banks, 676 financial services institutions, 573 insurance companies, 31 pension funds, 6,000 domestic investment funds and 260 investment companies.The main task of BaFin is the supervision of banks, insurance companies and the trading of securities and ensure the viability, integrity and stability of the German financial system.As a financial market-based institution BaFin is responsible to both providers and consumers.