Make message count always be an int