Add NCHARS helper macro

(Forgot to add this in the previous commit :( )