I wouldn't use the expression with an uncountable concept such as 'money' or, for example, salt or sugar. The asterisks have to stand for a countable quantity such as taverns as mentioned in the link provided by Bathsheba. The link suggests that nobody knows the origin of the expression, though its first recorded use is provided. So it's not in the Bible or Shakespeare. I've always visualised the expression -- a man with a stick in his hand, shaking it vigorously. You can easily see that if every shake counts as one of whatever it is he's shaking it at, the number of them will soon be very large indeed.