remove 'countMenuItems'

function becomes unnecessary with upcoming changes to the menu system,
anyway.