1838 Sought to become speaker of the state legislature - defeated. 1840 Sought to become elector - defeated.
These were both positions within the legislature
Even ignoring two elections, six is more than five.