tickets/DM-199: Develop new master-worker result system

Why count using `int`s instead of `size_t` (or `ssize_t` or `ptrdiff_t`)?