added get_css_count method