```python
def count(s, c):
    """
    Counts the occurrence of a given character in a string.

    Args:
        s: The input string.
        c: The character to count.

    Returns:
        The number of times the character c appears in the string s.
    """
    return s.count(c)

```