There are 93 possible endings in the game. The best ending can be achieved if you don’t kill enemies and befriend Papyrus, Undyne, and Alphys.