add the total rows as data on api call