The code works correctly. It counts the occurrences of a specific character in a string.
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.

### Instruction:
Fix this Python code. It should count the occurrences of a character in a string.

### Input:
`python
def count_char(s, char):
    count = 0
    for c in s:
        if c == char:
            count += 1
    return count
`

### Response:
The code works correctly. It counts the occurrences of a specific character in a string.<|im_end|>