use count, not sizeof
use 'Media' not 'Accept', and remove unused methods