Open a presentation. If you want only certain slides to have numbers, select those slides.
Click the Insert menu.
Click Slide numbers.
Click Apply to add numbers to the whole presentation or Apply to selected to add numbers to slides you have selected.
To turn off slide numbers, open the slide numbers window again and toggle On to Off.