No, they will not get counted since redirection is before ssi_in.php include.
You can make them count by instead of this redirect place javascript top.location redirect below ssi_in.php but again clicks in that case wont be counted and that ref url will get very low return of traffic.