Updated Count(), added internal commands.