Implemented textCount