ctoc is a fast code statistic tool that can count the number of lines of code and tokens. It is an extension development based on the gocloc code statistic tool and is compatible with all features of gocloc. ctoc is particularly suitable for analyzing token levels in large code libraries and can aid in prompt engineering and model token cost estimation.