remove legacy count definition