How to count or know the number of rows a table has without scaning all the table, maybe using ROW_NUMBER?
ROW_NUMBER
SELECT COUNT(*) FROM Table
will return the number of rows