homosexuality vs pansexuality

homosexuality

noun
  • The state of being sexually attracted primarily or exclusively to persons of the same sex, sometimes (potentially offensive) restricted to same-sex attraction between males. 

  • Sexual activity with a person of the same sex, sometimes (potentially offensive) restricted to same-sex sex between males. 

pansexuality

noun
  • A sexual orientation characterized by the potential for aesthetic attraction, romantic love and/or sexual desire for people regardless of their gender or sex. 

  • Sexuality that encompasses all kinds of sexuality. 

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