net/mlx4_core: Add helper to query counters