pid: Use generic ns_common::count