countContentObjectsInSection() abstract public method

Counts the number of content objects assigned to section with $id.
abstract public countContentObjectsInSection ( integer $id ) : integer
$id integer
return integer
 /**
  * Counts the number of content objects assigned to section with $id.
  *
  * @param int $id
  *
  * @return int
  */
 public function countContentObjectsInSection($id)
 {
     try {
         return $this->innerGateway->countContentObjectsInSection($id);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
 /**
  * Number of content assignments a Section has
  *
  * @param mixed $sectionId
  *
  * @return int
  */
 public function assignmentsCount($sectionId)
 {
     return $this->sectionGateway->countContentObjectsInSection($sectionId);
 }