Sum Rules in Annihilation and Photoproduction Processes in the Statistical Model