How do I use PHP to write "There are 10 records, etc" on my website.

For example, if I have 10 records in one database, how do I transfer the number to HTML??