This php code can be used in a drupal block to display the most popular searches on your site.
If you want to use a view to get the power of pagers but you need it to render in a block then follow this guide.
This code snippet will allow you to only display a block on the node types you select. Simply paste into the PHP options.