counting chars and execution time