Mikey Borup posts a quick look at using the After Effects Layer Index expression, and offers a couple of quick examples. The Layer index Expression in After Effects will retrieve the layer by number based on the order in the Timeline panel.

Using this, you can target certain layers and do things to them. In Mikey’s example, rotating each new layer by a value, or changing it’s opacity by a value.