How to summarize data from one second in Graphite?

view story

http://stackoverflow.com – I am new to Graphite. I just wrote a Python script that generates data within graphite, however I am sending in the value of 1 for each datapoint, and there are multiple datapoints for each second. What is the easiest way to turn the graph, which right now is just a straight line, into a frequency graph? Thank you! (HowTos)