Added support for indices in counter dependency

- support for loading from XML
- up to two counters + powers per attribute change