No. It was like that and everything broke.
realplayerscount as a new variable might be good, but you can generally achieve the same effect with a decent for-next loop on playerenters.
NPC Code:
if(playerenters){
this.realplayerscount=1;
for(this.i=1;this.i<playerscount;this.i++){
if(players[this.i].id>=0) this.realplayerscount++;
}
}