Calculation of WMC Metric.