Fix bug in rebuild_counter management command

It didn't respect the is_in_counter method. Instead, it treated all
children as being in the counter.
PEP8
Bump version
Use model_name instead of deprecated module_name