            $counts['processed'] += $counts['added'] = (int)$context->getAddCount();
            $counts['processed'] += $counts['updated'] = (int)$context->getUpdateCount();
            $counts['processed'] += $counts['deleted'] = (int)$context->getDeleteCount();
            $counts['invalid'] = (int)$context->getErrorEntriesCount();
        }

        return $counts;