WIP:computing expected counts