At a pet shop there were 10 more dogs than cats. The shop sold 2 dogs and bought 2 cats. Now there are twice as many dogs than cats.how many cats does the shop have now?