pi should also be used when counting LOC