#[Acc!](http://codegolf.stackexchange.com/a/62404), 27 bytes
Also works in [*Acc!!*](http://codegolf.stackexchange.com/a/62493).
Count q while 1 {
Write N
}
This code can handle null bytes, but will error when input runs out, as it is impossible to handle that case in *Acc!*