added char* len counter