friend function __dystrlen() definition

use: return the length of the string.