add count to relations and scopes

Signed-off-by: Jaka Hudoklin <jakahudoklin@gmail.com>