function doCount(PDO $conn = null) {
		$q = clone $this;

		if (!$q->getTable()) {
			throw new RuntimeException('No table specified.');
		}

		$q->setAction(self::ACTION_COUNT);
		return (int) $q->getQuery($conn)->bindAndExecute()->fetchColumn();
	}
function doCount(PDO $conn = null) {
		$q = clone $this;

		if (!$q->getTable()) {
			throw new RuntimeException('No table specified.');
		}

		$q->setAction(self::ACTION_COUNT);
		return (int) $q->getQuery($conn)->bindAndExecute()->fetchColumn();
	}
function doCount ( PDO $ conn = null ) { $ q = clone $ this ; if ( ! $ q -> getTable ( ) ) { throw new RuntimeException ( 'No table specified.' ) ; } $ q -> setAction ( self :: ACTION_COUNT ) ; return ( int ) $ q -> getQuery ( $ conn ) -> bindAndExecute ( ) -> fetchColumn ( ) ; }
Returns a count of rows for result
@return int
@param $conn PDO[optional]
Returns a count of rows for result