update gallery pictures count.