iOS skeleton

Added basic iPhone-counting functionality.