public function countSelectors($css = null)
	{
		$count = 0;
		if ($css !== null && $this->css !== $css) {
			$this->css = $css;
			$this->parsedCss = $this->splitIntoBlocks($this->css);
		}
		foreach ($this->parsedCss as $rules) {
			$count += $rules['count'];
		}

		return $count;
	}
public function countSelectors($css = null)
	{
		$count = 0;
		if ($css !== null && $this->css !== $css) {
			$this->css = $css;
			$this->parsedCss = $this->splitIntoBlocks($this->css);
		}
		foreach ($this->parsedCss as $rules) {
			$count += $rules['count'];
		}

		return $count;
	}
public function countSelectors ( $ css = null ) { $ count = 0 ; if ( $ css !== null && $ this -> css !== $ css ) { $ this -> css = $ css ; $ this -> parsedCss = $ this -> splitIntoBlocks ( $ this -> css ) ; } foreach ( $ this -> parsedCss as $ rules ) { $ count += $ rules [ 'count' ] ; } return $ count ; }
Counts the selectors in the given css

@param string $css
@return int The count of selectors in the CSS
Counts the selectors in the given css