added a getCount method -- why wasn't it there already???