What is the maximum number of pieces with the shape T which can be placed within the $5 \times 5$ grid shown, without overlapping, and with their edges along the lines of the grid?