------
## 最终结论
```python
def count_Rectangles(r):
    if r == 0:
        return 0
    elif r == 1:
        return 1
    else:
        return 8 * (r - 1)

# Test cases
assert count_Rectangles(2) == 8
assert count_Rectangles(1) == 1
assert count_Rectangles(0) == 0
```