script to generate a correspondence between counts and empirical ps