egl: flesh out a _eglNumAttribs() helper