Streams on Tesla K20 and K40

What are the maximum number of streams that can be run concurrently on Tesla K20 and Tesla K40 ? Can it be viewed using device query ?