Can clean it up little.
import random
count = 0
for x in range (100):
i = random.randint(1,10)
if i == 3:
count = count + 1
print count
There are other way to write this,here is one.
>>> import random
>>> [random.randint(1,10) for i in range(100)].count(3)
7