function complex( x ) {
	var view;
	var n;
	var i;

	view = reinterpretComplex( x, 0 );

	n = 0;
	for ( i = 0; i < view.length; i += 2 ) {
		if ( view[ i ] || view[ i+1 ] ) {
			n += 1;
		}
	}
	return n;
}
Counts the number of truthy values in a complex array.

@private
@param {Collection} x - input array
@returns {NonNegativeInteger} number of truthy values

@example
var Complex128Array = require( '@stdlib/array/complex128' );

var x = new Complex128Array( [ 1.0, 2.0, 0.0, 0.0, 3.0, 4.0, 0.0, 0.0 ] );

var n = complex( x );
// returns 2