There are twice as many frogs as dogs in the compound, meaning there are 160/2 = <<160/2=80>>80 dogs.
The total number of frogs and dogs in the compound is 80+160 = <<80+160=240>>240
The number of cats is less than 20% of the number of dogs, which means there are 20/100*80 = <<20/100*80=16>>16 dogs more than the number of cats.
Therefore, the number of cats is 80-16 = <<80-16=64>>64 cats
The total number of animals in the compound is 64 cats +240 dogs and frogs = <<64+240=304>>304 animals.
#### 304