line counter in nodejs