add count to relations

Signed-off-by: Jaka Hudoklin <jakahudoklin@gmail.com>
Merge pull request #212 from offlinehacker/relations_count

add count to relations