Is it possible to dynamically add rows and get the total entries in a table?