scala lines counter updated