need implement C# Counter

I want to make increment and decrement counter. There are two buttons called X and Y. If first press X and then press Y counter should increment. If first press Y and then press X counter should decrement.

I am not familiar with c#. So can anyone help me please ?? 🙁