Shares held directly after the transactions: 37,836.
Transaction types follow the SEC code table. Transactions such as A (grant from the company), F (shares withheld for taxes) and M (option exercise) are not open-market purchases or sales.
Official document
Booz Allen Hamilton Holding Corp, Form 4SEC EDGAR file no. 0001443646-26-000051