looking up count of multivars in correct module config

This fixes #597. I changed it so we look up Count in the correct module's config, not in the RootConfig.