add core method
add count method to String