import { Pipe , PipeTransform , NgModule } from '@angular/core' ; import { count } from '../utils/utils' ; @ Pipe ( { name : 'count' , } ) export class CountPipe implements PipeTransform { transform ( input ) { return count ( input ) ; } } @ NgModule ( { declarations : [ CountPipe ] , exports : [ CountPipe ] , } ) export class NgCountPipeModule { }