"Cog" generally refers to the gear on the rear wheel, and "chainring" refers to the one on the front. If you increase the size/number of the rear without changing the front it will be relatively easier to pedal (lower gearing) but you'll top out sooner, while if you reduce the size/number on the rear it will be harder to pedal (higher gearing) but you could theoretically reach a higher speed.