Check out example codes for "To count number of rows in SQL table". It will help you in understanding the concepts better.

Code Example 1

SELECT COUNT(*)
FROM dbo.bigTransactionHistory;

Code Example 2

SELECT count(*)
FROM information_schema.columns
WHERE table_name = 'Your_table_nale';

Learn ReactJs, React Native from akashmittal.com