changed count to itemCount to fix compiler errors