I used to do this. I lost all my muscle when I did. All my fat too, but it sucked. 5'6" 92lbs. That's what I became when I was obsessed with calories. Darn media.
Anyway, here's a message to those with this habit. If you don't already know this, not all calories are equal. Protein, carb, and fat calories are all different. So if you feel a need to count calories, make sure you're at least getting the right kinds for your need. 400 calories of protein is different from 400 calories of fat. They have different effects.
If you have no idea what I'm saying, feel free to PM me. I'm not all-knowing, and I'm only 17, but I've been studying bodybuilding for about half a year now.