public function countOfOwner()
    {
        $createdByAttribute = $this->createdByAttribute;
        return static::find()->where([$createdByAttribute => $this->$createdByAttribute])->count();
    }
public function countOfOwner()
    {
        $createdByAttribute = $this->createdByAttribute;
        return static::find()->where([$createdByAttribute => $this->$createdByAttribute])->count();
    }
public function countOfOwner ( ) { $ createdByAttribute = $ this -> createdByAttribute ; return static :: find ( ) -> where ( [ $ createdByAttribute => $ this -> $ createdByAttribute ] ) -> count ( ) ; }
Get total of contents which owned by their owner.
@return integer
Get total of contents which owned by their owner .