Representation Count Integral Formula