Here is the query which is not only quick but reliable enough to retrieve accurate number of rows in a very large table like a table with 2,000,000,000,000+ rows table :)
SELECT SUM (row_count)
FROM sys.dm_db_partition_stats
WHERE object_id=OBJECT_ID('<table name>')
AND (index_id=0 or index_id=1);
c189215e-4890-4588-bde4-e50d23bb14db|0|.0