We don't need countOnly, just count
Added sum function
Added average, maximum and minimum functions