class { onMount() { this.numberOfInvocations = 0; } handleAttach(color, event, node) { this.numberOfInvocations++; } }