Who made this famous statement: “Democracy is a form of government in which heads are counted but not weighed”?The most likely answer is, "Iqbal". Technically, that is wrong. Take a look at Iqbal's poem (posted at the bottom of this post). The statement is preceded by two verses which can be translated as, "This secret was revealed by a European man, although the wise ones do no disclose it." Iqbal's footnote indicates that the reference is to Stendhal.
So, the correct answer is that the proposition came from Stendhal, and Iqbal cited him in a satirical poem. Since the line is quoted so often, perhaps we should know a little more about this Stendhal, and why Iqbal quoted him.
Stendhal was the pen name of Marie-Henri Beyle (1783-1842), who was part of Napoleon’s administration and military. He remained skeptical about the struggle for the restoration of democracy after Napoleon. Apparently this attitude originated in an aristocratic bias and skepticism about the potential of the human being (two factors usually cited by Iqbal as the psychological reasons for the reaction against democracy in France and England).
The same skepticism seems to have prevented him from appealing to the nobler motives of his readers. Consequently, his fiction was starkly lacking in novelty, cathartic value and an appeal to imagination – elements that serve the basic purpose of all healthy stories in human society. Not surprisingly, his stories remained unpopular until a respectable word for the lack of purpose in fiction was found in the 20th Century: “realism”.