Need to handle count == 0 case.
Merge pull request #565 from ejc123/FixMean

Need to handle count == 0 case.