Script to randomly flip a coin and plot the number of heads