create indexes before counting
create indexes before counting


Former-commit-id: 1c46e125d047a17c34a261b26bc03c2f67932818
julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine