I've been looking for example scripts that show how to calculate the sum, count, average, and standard deviation of a series. Any help is appreciated.