added count and at methods