Generalization of the source code line counter