swinging back and forth vs swinging to and fro

swinging back and forth

swinging to and fro

How often have the words swinging back and forth and swinging to and fro occurred in a corpus of books? (source: Google Ngram Viewer )