Getting number of records in each table in the mentioned database