Hilbert series for quantum field theory