public int getNumberOfMovies() {
        int count = 0;
        if (isLeaf()) {
            if ((data.endsWith(".avi")) || (data.endsWith(".mov")) || (data.endsWith(".mpeg"))) {
                return 1;
            } else {
                return 0;
            }
        }

        for (int i = 0; i < children.size(); i++) {
            FileSystemNode node = children.get(i);
            count += node.getNumberOfPictures();
        }
        if ((data.endsWith(".png")) || (data.endsWith(".jpeg")) || (data.endsWith(".jpg"))) {
            return count + 1;
        } else {
            return count;
        }

    }