There are blue, red and yellow counters in a bag in the ratio 3:2:1. There are 6 more blue counters than red counters. How many counters are there in total?