Automating count lines of code