$hash{$word1}{$word2} = { total_counts => $tot_counts, words => { $word3 => $count, } }