I would like to replace a specific expression
denrule={Den1[vk]^e1_*Den2[l]^e2_*Den3[k+l-v*\[Omega]]^e3_*Den4[k]^e4_*Den5[kl]^e5_->j[MI,e1,e2,e3,-e4,-e5]};
The idea is replace such a expression with j[MI,e1,e2,e3,-e4,-e5], where the e12345 describes the exponent.
Here is an example what it should do:
Den1[vk]/.denrule = j[MI,1,0,0,0,0],
Den1[vk]*Den4[k]^2 = j[MI,1,0,0,-2,0]
I do not know how to write denrule so that it reads the exponent automatically.