using strlen function in string.h insdend of function count_str implement by myself.