Precompute sensor counts