No fiber is not counted towards carb energy. Depending on how viscuous and fermentable the type of fiber igested, it will be taken up by either the lower or upper gastrointestinal tracts where it is used as a laxative, or it will ferment and be used as energy in the form of short chain fatty acids. If the fiber is fermented, it no longer will contribute to your shit bulk. Therefore, finding nonfermenting fibers will help with your bowel and constipation problems. This will also depend on how much fiber is used in the diet, how much colonic microflora is present, antiobiotics that may be taken, and other components of your diet that are consumed, etc.... Currently used, the energy contribution from dietary fiber has an assigned value of 1.44 kcal/g for nonstarch polysaccharides and 2.01 kcal/g for resistant starch.
MR. BMJ