New script counting references