## Python: Count Prime Numbers upto the given input number

**Code:**

```
n=int(input("Enter the number till you want to check: "))
primes = []
for i in range (2, n+1):
for j in range(2, i):
if i%j == 0:
break
else:
primes.append(i)
print("Prime Numbers: ",primes)
print("Count of prime numbers: ", len(primes))
```

**Output:**

Enter the number till you want to check: 11

Prime Numbers: [2, 3, 5, 7, 11]

Count of prime numbers: 5