BUG: Removed the inconsistencies of the function ma.count
The inconsistency of ma.count when appled on masked_array with mask as
'nomask' has been removed. the return type of the function has also been
standardized according to the docs.
Closes gh-3368 and gh-4228
Corresponding changes in testing to check the functioning of ma.count