Binomial distribution via counting

Can someone please provide solution to solve this problem via the original counting method.