added option to count characters
count characters option