Fixed count* return type

The return type is a signed integral type.