Changed dj.GeneralRelvar/count to return a Matlab double

This change was necessary because we updated mym to return longints as uint64.
Here this would break a lot of existing code that assumes the outputs of
count() to be doubles.