Swift code that counts how many ways you can break a dollar