fixes bug 1109225 - Picture gallery count in event manager