changed pinCount to a const to fix a compiler error