BK-899 Added character count function