A fast way of doing this would be to use the following query but it is often not accurate
select sum([rows])
from sys.partitions
where id=id('tablename')
and index_id in (0,1)
If you need to know more about SQL, it is recommended to go for the SQL Course today.