Do warlock spells granted by the Expanded Spell List feature count against the number of spells known?

The spells granted by that feature aren’t automatically known by a warlock. Those spells are added to the warlock spell list for the character, who can choose them when learning a new warlock spell of the appropriate level. Once learned, such a spell does count against the number of spells the warlock knows