public function count() { if ($properties = $this->getStyleProperties()) { return count($properties); } return 0; }