concrete/src/Area/Area.php
public function getTotalBlocksInAreaEditMode()
    {
        $db = Database::connection();
        return (int) $db->fetchColumn(
            'select count(b.bID) from CollectionVersionBlocks cvb inner join Blocks b on cvb.bID = b.bID inner join BlockTypes bt on b.btID = bt.btID where cID = ? and cvID = ? and arHandle = ?',
            array($this->c->getCollectionID(), $this->c->getVersionID(), $this->arHandle)
        );
    }
public function getTotalBlocksInAreaEditMode()
    {
        $db = Database::connection();
        return (int) $db->fetchColumn(
            'select count(b.bID) from CollectionVersionBlocks cvb inner join Blocks b on cvb.bID = b.bID inner join BlockTypes bt on b.btID = bt.btID where cID = ? and cvID = ? and arHandle = ?',
            array($this->c->getCollectionID(), $this->c->getVersionID(), $this->arHandle)
        );
    }
public function getTotalBlocksInAreaEditMode ( ) { $ db = Database :: connection ( ) ; return ( int ) $ db -> fetchColumn ( 'select count(b.bID) from CollectionVersionBlocks cvb inner join Blocks b on cvb.bID = b.bID inner join BlockTypes bt on b.btID = bt.btID where cID = ? and cvID = ? and arHandle = ?' , array ( $ this -> c -> getCollectionID ( ) , $ this -> c -> getVersionID ( ) , $ this -> arHandle ) ) ; }
Returns the amount of actual blocks in the area, does not exclude core blocks or layouts, does not recurse.

@return int
Returns the amount of actual blocks in the area does not exclude core blocks or layouts does not recurse .