count array size and str length