IEnumerable<T> Queue.Count is not returning an integer : <p>I am attempting to define a queue named movingAverages with a size of queue.Count - period.  I am getting an error "int IEnumerable.Count() ... - cannot be applied to method and int....        </p>

<pre><code>private static IEnumerable&lt;DateClose&gt; MovingAverage(
        IEnumerable&lt;DateClose&gt; queue, int period)
    {
        Queue&lt;DateClose&gt; movingAverages = new Queue&lt;DateClose&gt;(queue.Count + period);
        return movingAverages;

    }
</code></pre>
