Postcount_rank is a project mainly written in PHP, it's free.
A Drupal 5.x port of the Postcount Rank module on Drupal.org
A Drupal 5.x port of the Postcount Rank module on Drupal.org: http://drupal.org/project/postcount_rank