return sum;
}
private Metric[] initializeMetrics(ReaderMethod reader) {
Metric metrics[] = {new NumberOfFor(reader),new NumberOfIf(reader),new NumberOfWhile(reader),
new NumberOfTry(reader),new NumberOfForeach(reader),new NumberOfCase(reader),
new NumberOfDefault(reader),new NumberOfContinue(reader),new NumberOfAnd(reader),
new NumberOfOr(reader),new NumberOfDoubleCondition(reader)};
return metrics;
}