now dynamic course counting