map \wc to count the apperence of text