calculate_tilde_e function

Estimate expected null baseline count based on reference row and column