No rule except that of placing an article before singular countable nouns. Your first 3 examples-- 'users', 'sums', and 'thought' are either plural countables or noncount. Your 'oxygen mask' is a singular countable noun.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.