Count Method now handles arrays with null values.