title: How can I count how many buttons have been pressed in my windows form?
body: <p>I found a snippet of code from a similar question but it didn't quite fit my implementation, and I couldn't figure out how to adapt it to my game. I have fifteen buttons and I need to be able to count the number of buttons pressed for each turn of a game. I am a very much a beginner with a limited knowledge of programming. I need to be able to count button presses, and then have the method restart at each players turn.  </p>
  
  <pre><code>private void label1_MouseClick(object sender, MouseEventArgs e)
  {
      int count++;
  }
  </code></pre>
  
  <p>I created mouse click event but I get an error when trying to increment my count <code>int</code>.</p>