------
## 最终结论
```python
def count_char_position(s):
    count = 0
    for index, char in enumerate(s):
        if char.islower():
            if index == ord(char) - ord('a'):
                count += 1
        elif char.isupper():
            if index == ord(char) - ord('A'):
                count += 1
    return count

# Test cases
assert count_char_position("xbcefg") == 2
assert count_char_position("ABcED") == 3
assert count_char_position("AbgdeF") == 5
```