added arraysize helper from chrome project