You may have to go thru’ the comments as well; some comments discuss the post further.
VAIDY
Excerpt from: Using SQL to retrieve number of records in a table – David