# ActivityItemCountingDefinitionType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

How should the activity deal with item counting, i.e. determining "expected total" for a bucket or overall.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
determineBucketSize | property ActivityItemCountingOptionType | [0,1] | Should the activity execution try to determine the size of individual buckets (usually by counting objects before processing)? When execution mode is bucketAnalysis, the bucket size is determined regardless of this setting.
determineOverallSize | property ActivityOverallItemCountingOptionType | [0,1] | Should the activity execution try to determine expected total progress (usually by counting objects before processing)? Currently not supported for worker tasks.
cacheOverallSize | property boolean | [0,1] | Should we cache expected total progress between activity runs? (Meaning when suspending and resuming an activity.

- ### Items

  - #### determineBucketSize

    Flags: RAM,runtime,AVals:5

    Multiplicity: [0,1]

    Display order:

    Should the activity execution try to determine the size of individual buckets (usually by counting objects before processing)? When execution mode is bucketAnalysis, the bucket size is determined regardless of this setting.

  - #### determineOverallSize

    Flags: RAM,runtime,AVals:3

    Multiplicity: [0,1]

    Display order:

    Should the activity execution try to determine expected total progress (usually by counting objects before processing)? Currently not supported for worker tasks.

  - #### cacheOverallSize

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Should we cache expected total progress between activity runs? (Meaning when suspending and resuming an activity.)