count method

int count(
  1. String text
)

Implementation

int count(String text) => encode(text).length;