Learning to Write and Count