added element count attribute