cocksure vs egotistical

cocksure

adj
  • Too confident; overconfident. 

egotistical

adj
  • Tending to talk excessively about oneself. 

  • Egoistical (advocating egoism). 

  • Believing oneself to be better and more important than others due to one's position, popularity, wealth, appearance, etc. 

How often have the words cocksure and egotistical occurred in a corpus of books? (source: Google Ngram Viewer )