1. A method for determining the numbers and spatial locations of a plurality of targets in a plurality of spatially ordered cells of a sample, comprising: associating cells of the plurality of spatially ordered cells at two or more spatial locations with a plurality of stochastic barcodes, wherein each stochastic barcode of the plurality of stochastic barcodes comprises a spatial label and a molecular label, and wherein the plurality of stochastic barcodes comprises two or more different spatial labels for identifying the two or more spatial locations of the cells; stochastically barcoding the plurality of targets in the cells of the plurality of spatially ordered cells using the plurality of stochastic barcodes comprising the two or more different spatial labels for identifying the two or more spatial locations of the cells; estimating the numbers of the plurality of targets in the cells of the plurality of spatially ordered cells at the two or more spatial locations using the molecular labels of the plurality of stochastic barcodes; and identifying the spatial locations of the plurality of targets in the cells of the plurality of spatially ordered cells at the two or more spatial locations using the two or more different spatial labels of the plurality of stochastic barcodes.