Updated code for new counter texture