This fix moves multiple places of serviceRunningTasksCount to one location in integration/internal/swarm, so that code duplication could be removed. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> (cherry picked from commit e485a60e2bcc59860f387c94f6afaa0130ea7040) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: c087f681d40332bd7d158baf615c03f6a72274f1 Component: engine