Count the dough

“Although it’s impossible to trace the exact date of the first slang usage of “dough” as a term for money, it seems to have originated in the 19th century. Since bread was the traditional everyday necessity of life, to earn one’s living was to earn one’s bread, therefore bread became synonymous with money. On some unknown day, an individual whose identity is lost to historians simply substituted the word dough, and a new slang term came into use. “

source