Launchpad MSP430 incremental blink with button
Energia has great tutorials at http://energia.nu/Guide_index.html

Mainly the Button Tutorial (use a pushbutton to control an LED.)

And the Button State Change Tutorial (counting the number of button pushes.)

A little modification of both will give you what you need.