Click to place the insertion point in the text object.
Click the Insert tab. Click the Insert Slide Number button.
The current slide number is inserted into the text box.