title: Meteor - Publish just the count for a collection
body: <p>Is it possible to publish just the count for a collection to the user? I want to display the total count on the homepage, but not pass all the data to the user. This is what I tried but it does not work:</p>
  
  <pre><code>Meteor.publish('task-count', function () {
      return Tasks.find().count();
  });
  
  this.route('home', { 
      path: '/',
      waitOn: function () {
          return Meteor.subscribe('task-count');
      }
  });
  </code></pre>
  
  <p>When I try this I get an endless loading animation.</p>