get_plot_caption function

get_plot_caption Generate plot caption given number of flags and length of unique elements