Added method for getting the number of streams. (#1)