Force integer type for shares count.