function accessors( x, predicate, thisArg ) {
	var get;
	var n;
	var i;

	get = resolveGetter( x );

	n = 0;
	for ( i = 0; i < x.length; i++ ) {
		if ( predicate.call( thisArg, get( x, i ), i, x ) ) {
			n += 1;
		}
	}
	return n;
}
Counts the number of elements in an accessor array which pass a test implemented by a predicate function.

@private
@param {Collection} x - input array
@param {Function} predicate - predicate function
@param {*} thisArg - predicate function evaluation context
@returns {NonNegativeInteger} result

@example
var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );

function predicate( value ) {
    return ( value > 0 );
}

var x = toAccessorArray( [ 0, 1, 0, 1, 1 ] );

var n = accessors( x, predicate, {} );
// returns 3