hang by the neck vs send to the gallows

hang by the neck

send to the gallows

How often have the words hang by the neck and send to the gallows occurred in a corpus of books? (source: Google Ngram Viewer )