To tell how many entries there are in a Smarts NCM database table, do the following:
select count(*) from <table>;
Example
select count(*) from cm_device;
(Where the name of the table is cm_device.)
The output of this command would be as follows:
voyencedb=# select count(*) from voyence.cm_device;
count
-------
4
(1 row)