You could put a dynamic textfield on the stage (or reference one already there) and then write the number to that textfield. So something like:
var tf:TextField = new TextField();
tf.type = TextFieldType.DYNAMIC;
tf.text = num_preguntas.toString();
addChild(tf);