Calculate metrics for C code