added new line counter