have a crack vs have a swing at

have a crack

have a swing at

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