move to.size + count above and store in a var. The same var can be used in the below line then.