Well, late by 5 years and unsure if it helps :
I was trying to count the no. of rows in a SQL Server table using MS SQL Server Management Studio and ran into some overflow error, then I used the below :
select count_big(1) FROM [dbname].[dbo].[FactSampleValue];
The result :
24296650578 rows