MySQL COUNT function returns the number of records in a select query and allows you to count all rows in a table or rows that match a particular condition.