Add getTotal() method to Db\Record