Yes, add an event module that checks for the a_post event, then finds the parentid, counts how many "A" posts have that parentid, and closes the question if the count is 50. Pretty simple, but you need to know a bit of PHP, SQL, and how Q2A works. If you have trouble, let me know.