Unless your problem's constraints lead to a particularly clever and very unobvious solution, I believe you are asking an exceedingly difficult question which would be at the state of the art of research mathematics.
First, counting just plain unrestricted partitions of an integer (that is, counting the number of distinguishable, order-independent ways of representing an integer as a sum of positive integers) is a deep mathematical problem with a history hundreds of years old.
http://en.wikipedia.org/wiki/Partition_%28number_theory%29#Partition_function_formulas
You have some additional unorthodox constraints---first that you only want the subset of partitions with a given number of terms (that may make it easier), and then that, I presume, a constraint on the XOR of the binary representation of the terms, which would probably be very difficult to handle.
How big do you intend n to be? The reference above says that p(1000) is roughly 2.44 * 10^31.
If n is big, do you also believe that c will be small? That would greatly simplify things.
To solve your problem you need to engage the interest of a research mathematician specializing in this field.
www.aimath.org/news/partition/
You might try Math Overflow using "Partitions" as a keyword.
I found this thread about partitioning into exactly c (they use 'k' for this part) individual parts, which is the first (easier) constraint of yours.
https://mathoverflow.net/questions/72418/what-are-the-best-known-bounds-on-the-number-of-partitions-of-n-into-exactly-k