Returns the number of versions of the binary object.
If no versions for the binary object are found, then the default value 0 is returned.