Create statistics.cpp

added statistics.cpp