Total rows in table

This should help: How to get record count?