Counts variable not defined if package used as a dependency to another package

For some reason, if the Counts variable is declared within Meteor.isClient or Meteor.isServer, it is not available on the server (triggers a "variable undefined" error when called in a publication).