count lines of code recursively