export class Counter { count : number ; constructor ( startNumber ) { this . count = startNumber ; } increment ( qty ) { if ( qty !== null ) { this . count += qty ; } } decrement ( qty ) { if ( qty !== null ) { this . count -= qty ; } } }