In views, show the number of users who have subscribed to the organic group I am using the following modules
1. Organic Groups
2. Views

A content type called Course has been created. It has been set as an organic group.
It has group members(Users who have subscribed to the course).

I have created a view which shows the list of all the groups (Nodes of type Course).
In another column, I want to show the number of users who have subscribed to the group(course).
This is how to get the OG membership ID:s to start with.


Add new view. Show -> OG membership (important!)
Then in some display add a contextual filter -> OG membership: Entity id. 
Provide default value -> Type -> User ID from logged in user. 
Override title: %1's groups. Specify validation criteria -> User.


Now you have the list of ID's.


Next to get the actual titles of the groups (as the base table is OG membership, not node), Add a relationship -> Group Node from OG membership.
Add a field -> Content: Title. Relationship -> Group node from OG membership.


Now you get the titles too. For test add some filters and sort criteria.