get methods and calculate CC per method