There are 16 endings in Rebirth, with 2 more added in Afterbirth, 2 added in Afterbirth+, and another 2 added in Repentance. They can be unlocked by killing the boss at the end of chapters 3-6.