I created method what needs to return proper length of items:
@Input() items: any[]; calculateCount(type?: string | string[]): number { if (typeof type