Only count enabled resources.

I'll stop with the feature creep until you catch up.