public function getCount(Condition $condition = null)
{
$query = $this->getQueryClass();
$query->clearSelectColumns()->addSelectColumn('COUNT(*)');
$stmt = $this->getStm($query, $condition);
$row = $stmt->fetch(\PDO::FETCH_ASSOC);
return current($row) + 0;
}