How to get RowCount on MySQL?

In this case I do need to get the data so no chance of not having to deal with the pain of the latency. I’m working on a Web App so the purpose of getting the record count is to determine if the data is to be displayed on a WebListBox or create an HTML page to display the data, there are a few cases in which up to 3,000 records need to be read and not only does this take time to process but the WebListBox would most probably be turned useless with that many rows.

Thanks for the input!