For total hours in a month, you can do:
$hours = PIREPData::getIntervalDataByMonth(array(), 1);
echo $hours->total;
For total flights:
$flights = PIREPData::findFlights(array('DATE_SUB(CURDATE(), INTERVAL 1 MONTH) <= p.submitdate'));
$total = count($flights);