As data size is growing each year, count record in a table takes more and more time if you use old fashion methods, for example, SELECT COUNT(*) FROM table
. It's the most reliable method to get record count but if you deal with multi-billion record table, it might take hours …