You can use COUNT function in SQL SERVER to count total number of record in a table.
- COUNT(*)
- COUNT(Field with Primary Key)
- COUNT(1)