babywc: implement newline and byte count