getcount: Need some more test, but it seems fine to me, .