```python
def upper_ctr(str):
    """
    Counts the number of upper case characters in a given string.
    """
    count = 0
    for char in str:
        if char.isupper():
            count += 1
    return count

```