@classmethod
def getLastFrame(cls, node, growing=0, refresh=True):
    """ provides the last frame number

        :param node: nexus field node
        :type node: :class:`pni.io.nx.h5.nxfield` or                     :class:`pni.io.nx.h5.nxgroup` or                     :class:`pni.io.nx.h5.nxlink` or                     :class:`pni.io.nx.h5.nxattribute` or                     :class:`pni.io.nx.h5.nxroot`
        :param growing: growing dimension
        :type growing: :obj:`int`
        :param refresh: refresh image node
        :type refresh: :obj:`bool`
        :returns: a number of frames
        :rtype: :obj:`int`
        """
    if refresh:
        node.refresh()
    if node:
        shape = node.shape
    if shape:
        if len(shape) > growing and growing > -1:
            return shape[growing]
    return 0
