change encoder number check pattern from 'frames' to 'Number'