You can easily create Joomla modules using the DirectPHP plugin.
In this article, I will show you how to create a module similar to the Most Popular module (mod_mostread) that comes with the standard Joomla installation.
Our version of “Most Popular” module has one additional enhancement: it will list the total number of hits for each listing as shown below: