Lifestyle tips

Counting calories for gain... how?

How does one count calories with an aim of gaining weight? I never understood this for weight loss; less so for gaining. For instance, how do I determine calories for stuff made at home?
5 years