added code for counting the seats for a party in a ranking list
moved functionality from parent to child model