Datatable.rows.count returns blank output

@Santan_Barnwal @kaderms. Guys, can you please advise me on how to approach this?

I am aware of how to add a new column with default value but can you please let me know how to solve this?