title: setting up a counter in a R simulation
body: <p>I would like to do a simulation in R.  I would like to set up a loop using some large number of trials.  Specifically I would like to use a normal distribution with known mean, Standard deviation and N = 9.  I would like to set up a counter which counts the number of times on of the replicates goes below (or above) a certain value.  Also I would like to see a histogram of the data  generated.</p>