/**
 * Returns the number of elements in a column
 *
 * @access   public
 * @static
 *
 * @param    AbstractDB  $db                 db resource
 * @param    String      $tableName          table
 *
 * @returns  Integer     value
 */
 function getCount(&$db, $tableName)
 {
     $db->query("SELECT count(*) FROM {$tableName}");
     return $db->getValue();
 }