In the example above, "ones" means "one-dollar bills". Whenever you're talking about money, holding your wallet, paying a bill, etc. you can just use the word "ones" to refer to one-dollar bills.
For other types of bills, the names are:
I'm not really sure what the denominations of bills in other contries are called.