Thanks for the very fast answers.
I think the problem was the wires connections, like Claude said. And those example counters seems to do the trick.
I'll send the patch next time, but I still want to, if possible, make it look like pd-vanilla just because it seems that in most texts about pd the exemples are given in that form.