Implemented String count and length  method