Added attribute count helper