Rangers can learn up to 11 spells, not including subclasses, and up to 5th-level spells.