count number of pieces of a certain type . concode_field_sep long hashKey concode_elem_sep boolean whiteMove concode_elem_sep int A8_CASTLE concode_elem_sep long[] castleHashKeys concode_elem_sep int[] squares concode_elem_sep long whiteHashKey concode_elem_sep int castleMask concode_elem_sep int epSquare concode_elem_sep int fullMoveCounter concode_elem_sep int H8_CASTLE concode_elem_sep int H1_CASTLE concode_elem_sep int bKingSq concode_elem_sep long[][] psHashKeys concode_elem_sep int wKingSq concode_elem_sep int A1_CASTLE concode_elem_sep int halfMoveClock concode_elem_sep long[] epHashKeys concode_field_sep int getPiece concode_elem_sep boolean darkSquare concode_elem_sep void setWhiteMove concode_elem_sep boolean a1Castle concode_elem_sep boolean h1Castle concode_elem_sep int getSquare concode_elem_sep boolean h8Castle concode_elem_sep void removeCastleRights concode_elem_sep int hashCode concode_elem_sep boolean drawRuleEquals concode_elem_sep void setEpSquare concode_elem_sep boolean a8Castle concode_elem_sep void unMakeMove concode_elem_sep int getEpSquare concode_elem_sep int getKingSq concode_elem_sep void setPiece concode_elem_sep long zobristHash concode_elem_sep long getRandomHashVal concode_elem_sep int getX concode_elem_sep int getY concode_elem_sep int getCastleMask concode_elem_sep void setCastleMask concode_elem_sep boolean equals concode_elem_sep void makeMove concode_elem_sep long computeZobristHash concode_elem_sep String toString
int function ( int arg0 ) { int loc0 = 0 ; for ( int loc1 = 0 ; loc1 < 64 ; loc1 ++ ) if ( squares [ loc1 ] == arg0 ) loc0 ++ ; return loc0 ; }