number of threads in block

Is it possible for a thread to figure out how many threads there are per block? Not its thread id, a count.

Thanks

blockDim.xblockDim.yblockDim.z