How to have sequence number for each entry?