I would say that counts, provided it's actual stock and not options. If it's actual stock, it's liquid, which makes it almost as good as cash for most purposes.
What I'm saying is that Glassdoor does not count it towards their avg salary number. If you click a salary for a role at a certain company it'll give you a different breakdown showing Avg Salary, and one showing Total Comp that includes salary + bonus + stock