user
Write a response that appropriately completes the request.

### Instruction:
Construct a database query to count the number of records that have a status of 'completed'.

### Response:
assistant
SELECT COUNT(*) FROM table WHERE status = 'completed';