Add element number attribute