code: func (s *Storage) Count(project types.ProjectName, path types.StreamPath) (c int) {
  	s.run(func() error {
  		if st := s.getLogStreamLocked(project, path, false); st != nil {
  			c = len(st.logs)
  		}
  		return nil
  	})
  	return
  }
docs: // Count returns the number of log records for the given stream.