Add factor counting over ranges