A shopkeeper sells 10 sweets for $1 and achieves a gain of 30%. How many sweets did he buy for $1?

1 = $0.1
$0.1 * 0.7 = $0.07
1 / $0.07 = 14