give a warning to vs put someone on notice

give a warning to

put someone on notice

How often have the words give a warning to and put someone on notice occurred in a corpus of books? (source: Google Ngram Viewer )