Source: use Source::sourceCount instead of group.objectCount
Source: Use getSource()