Are you thinking of "The people who cast the votes decide nothing. The people who count the votes decide everything." ?
Politifact says that one is a hoax. https://www.politifact.com/factchecks/2019/mar/27/viral-image/no-joseph-stalin-didnt-say-statement-about-electio/