Twice the number of pigs is 10 x 2 = <<10*2=20>>20.
So, Hannah's family has 20 - 3 = <<20-3=17>>17 cows.
They also have 17 + 6 = <<17+6=23>>23 goats.
So, they have a total of 10 + 17 + 23 = <<10+17+23=50>>50 animals on their farm.
#### 50