Yes, if a position that is opened is subsequently closed in the same trading session (day), it is defined as a Pattern Day Trade. If an IB liquidation results in the closing of a position that was opened in that same session/day, it would be counted towards the Pattern Day Trade total. This could also result in the account being flagged as a Pattern Day Trade account.
A day trade is defined as a purchase and sale of a security within the same trading day. The FINRA and NYSE instituted regulations intended to limit the amount of trading that can be done in accounts with small amounts of capital, specifically accounts with less than 25,000 USD Net Liquidation Value. A Pattern Day Trader is someone who effects 4 or more day trades within a 5 business day period. You have violated these rules and are therefore subject to PDT restrictions.
In the Account Window, the third section titled Available for Trading displays a line titled Day Trades Left (T,...,T+4).
In the example above we will assume that today is Monday. The account will have 0 day trades available Monday and Tuesday. On Wednesday and Thursday, 2 day trades will be available. If those two trades are not used, the account will have all 3 day trades available on Friday.
According to the governing bodies, you are now disallowed to initiate any new positions (though you can always close out preexisting positions) for a period of 90 days. You do have options which are:
A. Deposit funds into the account which bring the account value greater than USD 25,000. Accounts valued greater than USD 25,000 are allowed unlimited day trades.
B. Request a PDT Reset through Account Management. This can be done either by going to the Support section of Account Management followed by Tools and PDT Reset, or by selecting “Pattern Day Trader Reset” from the “New Ticket” drop down menu in the Account Management Message Center. By selecting either option, the Message Center will launch and the system will check to see if the account is eligible for a PDT Reset.
Additional information can be found on the Day Trading tab on this page.