Construct a database query to count the number of records that have a status of 'completed'.
`SELECT COUNT(*) FROM table_name WHERE status = 'completed'`
Complete the following task based on the instruction and optional input provided.### Instruction:
Construct a database query to count the number of records that have a status of 'completed'.

### Output:
`SELECT COUNT(*) FROM table_name WHERE status = 'completed'`