I have a database with 18 tables. I want to create a stored procedure to individually get all tables count with the help of loop based condition. I have done manually, but I want to do dynamically (please don't mark duplicate). I searched a lot about this question, but I could not find the solution. Finally I came to the stack overflow.
Example output:
 table_1   2108
 table_2   4320
 table_3   4257
 table_4   2198  
 table_5    310
 
    