------
## 最终结论
```python
def count_With_Odd_SetBits(n):
    count = 0
    for i in range(1, n + 1):
        if bin(i).count('1') % 2 == 1:
            count += 1
    return count

# Test cases
assert count_With_Odd_SetBits(5) == 3
assert count_With_Odd_SetBits(10) == 5
assert count_With_Odd_SetBits(15) == 8
```