In an experiment, a fair coin is tossed 13 times and the face that appears (H for head or T for tail) for each toss is recorded. How many elements of the sample space will start with a pair ( TT or HH ) or end with a pair (but not both) and have a total of exactly two heads?