Add counter for open ports

Signed-off-by: Kiril Nesenko <knesenko@redhat.com>