swimming costume vs swimming shorts

swimming costume

noun
  • the garments that one wears when bathing in the sea or a swimming pool, especially the one-piece garment worn by women and girls. 

swimming shorts

noun
  • A pair of shorts worn for swimming or bathing. 

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