Problem:
Count number of entries in repeating field group return 0
Solution:
To get total count based on repeating field group items, you will require to use the post relationship API function toolset_get_related_posts().
Solution:
There is no native way to add a modal popup, If you are using Bootstrap then you may try to add the modal HTML content and try to setup on your own.