@classmethod
def recordcount(cls, v):
    """Check that the DEPEND_0 has same record count as variable

        Checks the record count of the variable specified in the
        variable attribute for `DEPEND_0
        <https://spdf.gsfc.nasa.gov/istp_guide/vattributes.html#DEPEND_0>`_
        and compares to the record count for this variable.

        Parameters
        ----------
        v : :class:`~spacepy.pycdf.Var`
            Variable to check

        Returns
        -------
        list of str
            Description of each validation failure.

        """
    if not v.rv() or not 'DEPEND_0' in v.attrs:
        return []
    dep0 = v.attrs['DEPEND_0']
    if not dep0 in v.cdf_file:
        return []
    if len(v) != len(v.cdf_file[dep0]):
        return ['{} records; DEPEND_0 {} has {}.'.format(len(v), dep0, len(
            v.cdf_file[dep0]))]
    return []
