Confederation of African Football (CAF). 54 members.
Additionally, there are territories located in Africa which are not affiliated with CAF or any other confederation to any extent.
Some African states with limited or no international recognition have official national teams, but none have been considered for CAF membership. Instead, they are affiliated with organizations such as CONIFA.