Problem: 'inherit' action creates duplicate events

The superstate expansion code was copying events even if they were
defined in the child state.

Solution: fix the 'count' syntax to work as intended.