SPRITE(N,n)

Returns the number of displayed (active) sprites on layer n