Sam is learning React and wanted to create a counter that when clicked on a button increments 3 times. The code written by Sam has been shared with you.
Help Sam figure out why the code only increments by one count instead of 3.