To count as a bedroom, the ceiling height must be atleast 7 feet, the room must be 70 sq ft and be no less than 7 feet in one direction. There also has to be an egress window that has 5.7 sq ft or larger of openable area. That window can't be any higher than 44" off the finished floor to sill height. There also must be 36" of area outside the window and if the window well is more than 44" tall, there must be a permanent ladder installed. The 5.7 sq ft opening is based off of a firefighter being about to climb in with all of their gear on.