public function contarLinhas($where = "", $order = "") { $dao = new dao(); $sql = sprintf($this->sqlContaLinhas, $where, $order); $result = $dao->queryContarLinhas($sql); return $result[0]['qtd']; }