calculate required particle count