I think the full description of the problem you want to solve, is:
Generate 1000 lists, each of which contain x random numbers in the range 1 to 365, and determine how many of them contain duplicate numbers, that is, have the same number appear twice in the list. From the name birthprob I assume that you actually want the (estimated) probability, so you have to divide the obtained number by 1000.
Your solution is incomplete (the second argument of the Count is missing), but it is indeed the initial part of a correct solution. Let me however point out a simplification: Instead of Table[RandomInteger[{1, 365}, x], {1000}] you can simply write RandomInteger[{1, 365}, {1000, x}].
What is missing in your solution is the second element of Count (and, of course, the division by 1000). Count expects as second element a pattern. What you want is a pattern that matches lists with duplicate elements. This pattern is {___, a_, ___, a_, ___}. Therefore the complete solution (with the simplified table generation) reads
birthprob[x_] :=
Count[RandomInteger[{1, 365}, {1000, x}], {___, a_, ___, a_, ___}]/1000
OK, so how does this pattern work? First, ___ matches any sequence of expressions, especially any sequence of numbers, including the empty one. On the other hand, _ matches exactly one expression. Now a_ is a (short-hand) notation to say "I want whatever this pattern matches to be named a" (note that you already used the very same form in the definition of birthprob: by using x_ as the argument, you say "accept any single argument, and name it x). So the full expression reads as "a list which contains an arbitrary number of elements (including none), then an element which shall be named a, then again an arbitrary number of elements (including none), then the single element a again, followed by an arbitrary number of elements". Therefore a list matches this pattern exactly if it contains a duplicate element (which will be matched with a_).
Let's look at this for x up to 100:
ListPlot[Array[birthprob,{100}]]

Count[],Tally[], andGather[], as well asHistogram[]. – J. M.'s missing motivation Oct 10 '12 at 16:09