The Holocaust (capital 'H') and the "6 million" estimate relates to deaths of Jewish people only, by any means by the Axis powers, i.e. including starvation - not only by execution, and not only in gas chambers. Here is a post on the 6 million; it includes links to a few more posts on numbers
And, if terminology and overall counts are of interest, check out these posts
When was the first time that the Holocaust was referred to as the Holocaust?
Holocaust Historiography: the question of non-Jewish victims of Nazi extermination
Why is the Holocaust associated more with Jews than the other victims?
Jewish vs. non-Jewish experience in WWII camps + why the Poles/Slavs aren't discussed as much?
if you have followup questions on any locked posts, ask them here & include the relevant user's username so they'll get an auto-notification