push button code - missing purpose

That is a general purpose counter sketch which records the number of times each button is pressed.

For your purpose, an MP3 player control, that is probably overkill but it does contain the classic elements of button debounce, watching state changes etc.

Presumably you'll be using a standard MP3 player module, maybe like this, and that dictates what buttons you require and their connections.