added function to count lines of code very simply