cleanup animal count generator syntax