```python
def count_Hexadecimal(L,R) :
    count = 0
    for i in range(L, R + 1):
        hex_representation = hex(i)[2:]
        is_valid = True
        for char in hex_representation:
            if not ('0' <= char <= '9'):
                is_valid = False
                break
        if is_valid:
            count += 1
    return count
```