title: In my python program how do I count the number of times a value has occurred
body: <h3>My code:</h3>
  <p>I made some code that prints 100 random values from a range 1-8, and if the number is from 1-5 it prints and x next to it and if it 6-8 it prints a y. I'm wondering how I can print the number of times an x is printed and a y is printed.</p>
  <p>I'm also wondering why i had to make a conditional statement for every individual value i wanted to print x for, instead of just writing this (which didn't work properly)</p>